package tech.xs.common.framework.domain.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import tech.xs.common.util.structure.Tree;

import java.util.Collection;

/**
 * 基础树结构
 *
 * @param <T> 结构类型,用于给泛型获取类型
 */
@Getter
@Setter
@ToString
public class BaseTree<T> implements Tree<T> {

    protected String code;

    private String fatherCode;

    private T father;

    private Collection<T> children;


}
